package com.data.sample.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.data.sample.entity.OpcUaProtocol;
import com.data.sample.mapper.OpcUaProtocolMapper;
import com.data.sample.service.IOpcUaProtocolService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * OPC UA通讯协议信息 Service实现
 * @author zhaocx
 * @date 2025-10-24
 */
@Slf4j
@Service
public class OpcUaProtocolServiceImpl extends ServiceImpl<OpcUaProtocolMapper, OpcUaProtocol>
        implements IOpcUaProtocolService {

    @Autowired
    OpcUaProtocolMapper opcUaProtocolMapper;

    @Override
    public List<OpcUaProtocol> selectOpcUaProtocol(String unitId) {

        List<OpcUaProtocol> OpcUaProtocolLst = opcUaProtocolMapper.selectByUnitId(unitId);
        return OpcUaProtocolLst;
    }
}

